<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Accesslevel extends M_Controller {

	function __construct ()
	{
		parent::__construct();
	}

	function add ()
	{
//		if ($this->input->post('submit')) {
//			$this->Accesslevelmodel->request_url = $this->input->post('request_url');
//			$this->Accesslevelmodel->user_id = $this->input->post('user_id');
//
//
//			$this->Usermodel->pass = $this->input->post('pass');
//			$remember = $this->input->post('remember');
//			if ($this->Usermodel->get()) {
//				$this->session->set_userdata('user_id', $this->Usermodel->id);
//				$this->msmarty->assign('login', $this->Usermodel->login);
//				$content = $this->msmarty->fetch('greetings.html');
//			} else {
//				$content = $this->msmarty->fetch('login_error.html');
//			}
//		} else {
//			$this->msmarty->assign('login', form_input(array(
//					'name'        => 'login',
//					'id'          => 'login',
//					'maxlength'   => '25',
//					'size'        => '10')));
//			$this->msmarty->assign('pass', form_password(array(
//					'name'        => 'username',
//					'id'          => 'username',
//					'maxlength'   => '50',
//					'size'        => '10')));
//			$this->msmarty->assign('submit', form_submit('submit', 'login'));
//            $this->msmarty->assign('remember', form_checkbox('remember', '1', FALSE));
//
//			$this->msmarty->assign('action', site_url($this->uri->uri_string()));
//			$content = $this->msmarty->fetch('loginform.html');
//		}
//		$this->msmarty->assign('content', $content);
//		$this->msmarty->display('main.html');
	}
}
